﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Models;

namespace BLL
{
    public class PJLogManager
    {
        private PJLogService objPJLogService = new PJLogService();
        #region 新增
        /// <summary>
        /// 新增一条记录
        /// </summary>
        /// <param name="baojia"></param>
        /// <returns></returns>
        public int InsertLog(PJLog pjLog)
        {
            return objPJLogService.InsertLog(pjLog);
        }
        public int InsertLogTemp(PJLog pjLog)
        {
            return objPJLogService.InsertLogTemp(pjLog);
        }
        #endregion

        #region 修改
        public int UpdateLog(PJLog pjLog)
        {
            return objPJLogService.UpdateLog(pjLog);
        }
        public int UpdateLogTemp(PJLog pjLog)
        {
            return objPJLogService.UpdateLogTemp(pjLog);
        }
        public int UpdateStatues(int workParentId)
        {
            return objPJLogService.UpdateStatues(workParentId);
        }
        public int UpdateStatuesTemp(int workParentId)
        {
            return objPJLogService.UpdateStatuesTemp(workParentId);
        }
        public int UpdateLogById(PJLog pjLog)
        {
            return objPJLogService.UpdateLogById(pjLog);
        }
        #endregion

        #region 查询
        public PJLog GetLog(int workParentId)
        {
            return objPJLogService.GetLog(workParentId);
        }
        public PJLog GetLogFormId(int id)
        {
            return objPJLogService.GetLogFormId(id);
        }
        public PJLog GetLogTemp(int workParentId)
        {
            return objPJLogService.GetLogTemp(workParentId);
        }
        public List<PJLog> GetLog(string pjId)
        {
            return objPJLogService.GetLog(pjId);
        }
        #endregion
    }
}
